package com.sean.reverse.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author sean
 * @createTime 2022/5/2 16:42
 * @description
 */
@Controller
public class IndexController {
    @GetMapping("/")
    public String index(){
        return "index";
    }

    @ResponseBody
    @GetMapping("/hello")
    public String hello(){
        return "Hello!";
    }
}
